package loaders
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.net.URLLoader;
	import flash.net.URLLoaderDataFormat;
	import flash.net.URLRequest;
	import flash.net.URLRequestMethod;
	import flash.utils.ByteArray;
	
	public class TextLoader extends ByteLoader
	{
		private var _bytes:ByteArray;
		public function TextLoader(url:String,callback:Function = null)
		{
			super(url,callback);
		}
		
		override protected function __onDataLoadComplete(event:Event):void
		{
			super.__onDataLoadComplete(event);
		}
		
		override protected function getLoadDataFormat():String
		{
			return URLLoaderDataFormat.TEXT;
		}
		
		override public function get type():int
		{
			return LoaderTypes.TEXT_LOADER;
		}
	}
}